package me.domain;

/**
 * 定义学生类
 *
 * @author Rainh
 */
public class Student {

    /**
     * 定义属性文件
     * @param id  学号
     * @param name  学号
     * @param gender  性别
     * @param age  年龄
     * @param address  地址
     */
    private Long id;
    private String name;
    private String gender;
    private Integer age;
    private String address;

    /**
     * 无参构造方法
     */
    public Student() {
    }

    /**
     * 带参构造方法
     * @param id
     * @param name
     * @param gender
     * @param age
     * @param address
     */
    public Student(Long id, String name, String gender, Integer age, String address) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.address = address;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                '}';
    }
}
